import React, {Component} from 'react';

class Preview extends Component {
    render() {
        const image = this.props.location.state;
        return (
            <div className={'images-preview'}>
                <h2>大图预览</h2>
                <img src={image.imgurl} alt={image.title}/>
                <p>图片标题：{image.title}</p>
                <p>图片日期：{image.date}</p>
                <p>图片链接：{image.imgurl}</p>
            </div>
        );
    }
}

export default Preview;